/*
 * @Author: funlee
 * @Email: i@funlee.cn
 * @Date: 2018-01-12 01:20:19
 * @Last Modified time: 2018-01-12 01:20:19
 * @Description: 三次贝塞尔曲线绘制桃心 
 */
window.onload = function () {
  var canvas = document.querySelector('.canvas')
  var cxt = canvas.getContext('2d')

  cxt.moveTo(75, 40);
  cxt.bezierCurveTo(75, 37, 70, 25, 50, 25);
  cxt.bezierCurveTo(20, 25, 20, 62.5, 20, 62.5);
  cxt.bezierCurveTo(20, 80, 40, 102, 75, 120);
  cxt.bezierCurveTo(110, 102, 130, 80, 130, 62.5);
  cxt.bezierCurveTo(130, 62.5, 130, 25, 100, 25);
  cxt.bezierCurveTo(85, 25, 75, 37, 75, 40);
  cxt.stroke();

}
